import request from '@/utils/request'

// 查询拉黑记录列表
export function listBlack(query) {
  return request({
    url: '/cbs/black/record/list',
    method: 'get',
    params: query
  })
}

// 查询拉黑记录详细
export function getBlack(id) {
  return request({
    url: '/cbs/black/record/' + id,
    method: 'get'
  })
}

// 新增拉黑记录
export function addBlack(data) {
  return request({
    url: '/cbs/black/record',
    method: 'post',
    data: data
  })
}

// 修改拉黑记录
export function updateBlack(data) {
  return request({
    url: '/cbs/black/record',
    method: 'put',
    data: data
  })
}

// 删除拉黑记录
export function delBlack(id) {
  return request({
    url: '/cbs/black/black/' + id,
    method: 'delete'
  })
}
